package com.mdd.common.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@TableName("order_item")
@ApiModel("订单中所包含的商品实体")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Long id;
    @ApiModelProperty(value = "订单id")
    private Long orderId;
    @ApiModelProperty(value = "订单编号")
    private String orderSn;
    @ApiModelProperty(value = "商品编号")
    private Long productId;
    @ApiModelProperty(value = "商品封面图")
    private String productPic;
    @ApiModelProperty(value = "商品名称")
    private String productName;
    @ApiModelProperty(value = "商品品牌")
    private String productBrand;
    @ApiModelProperty(value = "商品编码")
    private String productSn;
    @ApiModelProperty(value = "销售价格")
    private BigDecimal productPrice;
    @ApiModelProperty(value = "购买数量")
    private Long productQuantity;
    @ApiModelProperty(value = "商品sku编号")
    private Long productSkuId;
    @ApiModelProperty(value = "商品分类id")
    private Long productCategoryId;
    @ApiModelProperty(value = "该商品经过优惠后的分解金额")
    private BigDecimal realAmount;
    @ApiModelProperty(value = "商品销售属性:[{},{}]")
    private String productAttr;
    @ApiModelProperty(value = "租赁计划详情id")
    private Long leasingSchemeDetailsId;
}
